package com.qian.Test;


//学生类
public class Student {
    private int id;
    private String name;
    private int age;
    private String site;

    public Student(int id, String name, int age, String site) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.site = site;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }


    public void display(){
        System.out.println("id  \t姓名    \t年龄    \t家庭地址");
        System.out.println(""+this.id+"\t   "+this.name+"   \t"+this.age+"  \t"+this.site);
    }
}

